package de.szut.traineeslife.db;

import android.net.Uri;

public class ReportContract {

	public static final String CONTENT_AUTHORITY = "de.szut.traineeslife";

	private static final Uri BASE_CONTENT_URI = Uri.parse("content://" + CONTENT_AUTHORITY);

	private static final String PATH_REPORTS = "reports";

	interface ReportColumns {
		static final String KEY_ID = "_id";
		static final String KEY_TITEL = "titel";
		static final String KEY_STARTDATE = "startdate";
		static final String KEY_ENDDATE = "enddate";
		static final String KEY_TEXT = "reporttext";
		static final String KEY_TEXT_SQL = "reporttextshool";		
		static final String KEY_HOURS = "hoursofwork";
		static final String KEY_MODEL_PATH = "pathofmodel";
	}

	public static class Report implements ReportColumns {
		public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.traineeslife.report";

		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.traineeslife.report";

		public static final Uri CONTENT_URI = BASE_CONTENT_URI.buildUpon().appendPath(PATH_REPORTS).build();

		public static Uri buildLocationUri(String locationId) {
			return CONTENT_URI.buildUpon().appendPath(locationId).build();
		}
	}
}
